Use EfiACPIReclaimMemory for ESRT
authorDemi Marie Obenour <demi@invisiblethingslab.com>
Tue, 11 Oct 2022 03:42:03 +0000 (23:42 -0400)
committerJulien Grall <jgrall@amazon.com>
Thu, 8 Dec 2022 18:03:08 +0000 (18:03 +0000)
commit11560248ffda3f00f20bbdf3ae088af474f7f2a3
tree54dccfab1025bf71d13f69ffa6d3817c4c84c1d6
parentd50a866d88ea31aebca639b8400cae6699bbc012
Use EfiACPIReclaimMemory for ESRT

A previous patch tried to get Linux to use the ESRT under Xen if it is
in memory of type EfiRuntimeServicesData.  However, this turns out to be
a bad idea.  Ard Biesheuvel pointed out that EfiRuntimeServices* memory
winds up fragmenting both the EFI page tables and the direct map, and
that EfiACPIReclaimMemory is a much better choice for this purpose.

Link: https://lists.xenproject.org/archives/html/xen-devel/2022-09/msg01365.html
Signed-off-by: Demi Marie Obenour <demi@invisiblethingslab.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit d7669c101427c1504517418e832fb760ae89e6bc)
xen/common/efi/boot.c